<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>

<html:html locale="true">
<head>
<title>index page</title>
<html:base />
<style type="text/css">
A:active {
	COLOR: green;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: red;
	TEXT-DECORATION: none;
	font-weight: none
}
.cd-wrapper
{
    padding:5px;
	width:250px;
	float:left;
}
.cd-title{
 font-size: 12px;
 text-decoration:none;
}
.add-tocart{
	color:#333333;
	font-size:8px;	
}
</style>
</head>

<body>
	<%@ include file="top.jsp"%>
	<table align="center" width="80%" border="0" cellpadding="5"
		cellspacing="1" bgcolor="#E7FDFE">
		<tr>
			<td align="center" width="75%">
										
								<c:forEach var="result" items="${cdList}">
								<div class="cd-wrapper">
									<div class="cd-image">												
												<c:if test="${result[1] != '' }">
													<img src="../images/<c:out value="${result[1]}"/>"
														alt="<c:out value="${result[1]}"/>"  width="100" height="100" />
												</c:if>
												 <c:if test="${result[1] == '' }">
													<img src="../images/nophoto.gif" width="100" height="100" />
												</c:if>
									</div>	
									<div>		
												<a class="cd-title"
												href="../ViewMusicCd?cdId=<c:out value="${result[0]}"/>"><B><font
														color="#30249D"><c:out value="${result[2]}" /></font></B></a> 
												<font color="#30249D"> <font color="#30249D"><c:out
															value="${result[3]}" /></font><br>
											    <a class="add-tocart"
												href="/IMusicStore/Client/AddToCart.do?action=Edit&cdId=<c:out value="${result[0]}"/>"><b>Add
														To Cart
												</b></a>
									</div>
								
								</div>
								</c:forEach>							
				
			</td>
		</tr>
	</table>
</body>
</html:html>